package com.liuning.graduationdemo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 公告表
 * </p>
 *
 * @author pumpkin
 * @since 2022-06-04
 */
@Getter
@Setter
@TableName("sys_notice")
@ApiModel(value = "Notice对象", description = "公告表")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("公告标题")
      private String title;

      @ApiModelProperty("公告内容")
      private String content;

      @ApiModelProperty("创建人")
      private String user;

      @ApiModelProperty("公告创建日期")
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      private LocalDateTime createTime;

      @ApiModelProperty("封面")
      private String img;

      @ApiModelProperty("是否删除，0未删除，1删除")
      @TableLogic
      @TableField("deleted")
      private Integer deleted;


}
